home *** CD-ROM | disk | FTP | other *** search
- class Application extends MovieClip
- {
- static var instance;
- static var sBasePath;
- function Application(root)
- {
- super();
- root.__proto__ = this.__proto__;
- root.__constructor__ = Application;
- this = root;
- Application.instance = this;
- this.init();
- }
- static function main(root)
- {
- var _loc1_ = new Application(root);
- }
- static function tr()
- {
- trace(arguments.join(" : "));
- }
- function init(Void)
- {
- Application.sBasePath = _root.basepath;
- §§push(this.stop());
- if(Application.sBasePath == undefined)
- {
- Application.sBasePath = "Scripts/";
- }
- }
- static function goto(sLabel)
- {
- Application.instance.gotoAndStop(sLabel);
- }
- }
-